From 5c3c708ac0833544980fbebfa66fd45a63067445 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 4 Oct 2005 16:08:18 +0000 Subject: [PATCH] Trim trailing spaces when reading description. Provide default icon if none given. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1448 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/pcx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/pcx.c b/gpsbabel/pcx.c index a78d2f906..4dfa90490 100644 --- a/gpsbabel/pcx.c +++ b/gpsbabel/pcx.c @@ -92,9 +92,11 @@ data_read(void) date, time, &alt); sscanf(&ibuf[60], "%40c", desc); + symnum = 18; sscanf(&ibuf[116], "%d", &symnum); desc[sizeof(desc)-1] = '\0'; + rtrim(desc); name[sizeof(name)-1] = '\0'; wpt_tmp = waypt_new(); wpt_tmp->altitude = alt; -- 2.30.2